import request from '@/utils/request'
// 登录
export function login(data) {
  return request.post('/sys/login', data)
}
// 获取用户基本信息
export function getProfile() {
  return request.post('/sys/profile')
}
// 获取用户的详细信息
export function getUserDetailById(id) {
  return request.get('/sys/user/' + id)
}
export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
